package com.mao.server.constant;

public class Constants {
    // login
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;
    public static final int PASSWORD_MIN_LENGTH = 2;
    public static final int PASSWORD_MAX_LENGTH = 20;

    public static final String USERNAME     = "username";
    public static final String AUTH_HEADER  = "Authorization";
    public static final String TOKEN_PREFIX = "Bearer ";

    public static final String INVALID_DATA               = "数据输入不合法";
    public static final String USERNAME_OR_PASSWORD_ERROR = "用户名或密码错误";
    public static final String PASSWORD_ERROR             = "密码错误";
    public static final String PLEASE_LOGIN               = "请登录";


    public static final String USERNAME_OR_PASSWORD_NULL = "用户名或密码为空";
    public static final String PASSWORD_NOT_MATCH        = "密码错误";
    public static final String USER_USERNAME_NOT_MATCH   = "用户名在 " + USERNAME_MIN_LENGTH + " 到 " + USERNAME_MAX_LENGTH + "之间";
    public static final String USER_PASSWORD_NOT_MATCH   = "密码在 "   + PASSWORD_MIN_LENGTH + " 到 " + PASSWORD_MAX_LENGTH + "之间";

    public static final String TOKEN_NULL_OR_EXPIRED     = "token 没有或者失效";
    public static final String TOKEN_VERIFY_ERROR        = "token校验失败";
        public static final String ACCOUNT_HAS_EXIST    = "用户已存在";
    public static final String ACCOUNT_NOT_FOUND         = "用户不存在";

    public static final String NAME = "name";
    public static final String CANNOT_DELETE_CURRENT_USER = "不能删除当前的用户";
    public static final String DEFAULT_PASSWORD = "123456";
    public static final String TITLE = "title";
}
